using System;
using System.Web.UI;
using SCRUMPoker.Web;

namespace SCRUMPoker
{

    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            TextBox1.Focus();
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (!IsValid)
                return;
            Participant part = new Participant();
            part.Name = TextBox1.Text;
            ScrumPokerSession.GameParticipant = part;
            Response.Redirect("~/GameList.aspx");
        }
    }

}